//
//  ProgressViewController.h
//  iFlickr
//
//  Created by 张 霄鹤 on 09-7-12.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "UploadViewController.h"

@class UploadViewController;

@interface ProgressViewController : UIViewController {
	IBOutlet UILabel *lblProcess;
	IBOutlet UIActivityIndicatorView *progress;
	IBOutlet UIProgressView *progressBar;
	NSString *progressTitle;
	BOOL bRunning;
	UploadViewController *uploadController;
	
	/**
	 * 当前进度位置
	 */
	NSInteger currentIndex;
	/**
	 * 总共进度数量
	 */
	NSInteger totalNumber;
}

@property(nonatomic, retain) UploadViewController *uploadController;

/**
 * 按钮，停止提交操作
 */
-(IBAction)cancelUploadTask:(id)sender;

/**
 * 设置进度标题
 */
-(void) setProgressTitle:(NSString *)title;
/**
 * 设置总进度
 */
-(void) setTotalNumber:(NSInteger)total;
/**
 * 设置当前进度
 */
-(void) setCurrentProgress:(NSInteger)current;

@end
